package com.test.mymall.product;

//import com.aliyun.oss.OSS;
//import com.aliyun.oss.OSSClient;
//import com.aliyun.oss.OSSClientBuilder;
//import com.aliyun.oss.model.PutObjectRequest;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.io.File;


@SpringBootTest
class MallProductApplicationTests3 {

//    @Autowired
//    private OSSClient ossClient;

    @Test
    void contextLoads() {
//        PutObjectRequest putObjectRequest = new PutObjectRequest("mymall202505", "oppo.png",new File("D:\\oppo.png"));
//        //上传文件
//        ossClient.putObject(putObjectRequest);
//
//        //关闭 ossClient
//        ossClient.shutdown();
 //       System.out.println("上传成功!");
    }


}
